﻿using CleanArchitecture.Core.SharedKernel;
using CleanArchitecture.Infrastructure.Entities.AdminUsers;

namespace CleanArchitecture.Infrastructure.Entities.SystemModules
{
    /// <summary>
    /// Represents a permission record-customer role mapping class
    /// </summary>
    public partial class AdminRoleSystemModuleMapping : BaseEntity
    {
        /// <summary>
        /// Gets or sets the permission record identifier
        /// </summary>
        public int FKAdminRoleId { get; set; }

        /// <summary>
        /// Gets or sets the adminrole identifier
        /// </summary>
        public int FKSystemModuleId { get; set; }
        /// <summary>
        /// 记录基于用户角色的模块是否有使用权限
        /// </summary>
        public EntityEnumConfig.YesorNo IsAllow { get; set; }
        public string AuthorizedButtonIds { get; set; }
        /// <summary>
        /// Gets or sets the permission record
        /// </summary>
        public virtual AdminRole AdminRole { get; set; }

        /// <summary>
        /// Gets or sets the customer role
        /// </summary>
        public virtual SystemModule SystemModule { get; set; }
    }
}
